//
//  UIView+GQHAnimation.h
//  Seed
//
//  Created by GuanQinghao on 30/01/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum GQHAnimationShakedType : NSUInteger {
    GQHAnimationShakedTypeVertical,         // 上下振动
    GQHAnimationShakedTypeHorizontal,       // 左右振动
} GQHAnimationShakedType;

typedef enum GQHAnimationScaledType : NSUInteger {
    GQHAnimationScaledTypeUpDown,       // 先放大后缩小弹性变化
    GQHAnimationScaledTypeDownUp,       // 先缩小后放大弹性缩放
} GQHAnimationScaledType;

@interface UIView (GQHAnimation)

/// 弹性振动动画
+ (void)qh_animateShakedWithLayer:(CALayer *)layer type:(GQHAnimationShakedType)type;
/// 弹性缩放动画
+ (void)qh_animateScaledWithLayer:(CALayer *)layer type:(GQHAnimationScaledType)type;

@end
